package dryven.unittest.testcontrollers.dispatch;

import junit.framework.TestCase;

public class TestDependency {
	private boolean constructorCalled = false;
	private boolean methodCalled = false;
	private Object[] expectedValues;
	
	public TestDependency(Object[] expectedValues) {
		super();
		this.expectedValues = expectedValues;
	}
	
	public void assertValue(int index, Object o) {
		TestCase.assertEquals(o, expectedValues[index]);
	}

	public boolean isConstructorCalled() {
		return constructorCalled;
	}

	public void setConstructorCalled() {
		this.constructorCalled = true;
	}

	public boolean isMethodCalled() {
		return methodCalled;
	}

	public void setMethodCalled() {
		this.methodCalled = true;
	}
	
	
}
